﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://Microsoft.Services.Clab/ui/2011/01/designers">
  <xs:element name="mvvmc">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="codeController" maxOccurs="1" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="actions">
                <xs:complexType>
                  <xs:choice maxOccurs="unbounded" minOccurs="0">
                    <xs:element name="startupAction" maxOccurs="1" minOccurs="0" />
                    <xs:element name="unloadViewAction" maxOccurs="1" minOccurs="0" />
                    <xs:element name="action" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="parameter" maxOccurs="unbounded" minOccurs="0">
                            <xs:complexType>
                              <xs:attribute name="name" type="xs:string" use="required" />
                              <xs:attribute name="type" type="xs:string" use="required" />
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="name" type="xs:string" use="required" />
                        <xs:attribute name="hasCanDoAction" default="false" type="xs:boolean" use="optional" />
                      </xs:complexType>
                    </xs:element>
                  </xs:choice>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="baseControllerTypeName" type="xs:string" use="required" />
            <xs:attribute name="classNamespaceName" type="xs:string" use="required" />
            <xs:attribute name="classTypeName" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="wpfViewModel" maxOccurs="1" minOccurs="0">
          <xs:complexType>
            <xs:choice maxOccurs="unbounded" minOccurs="0">
              <xs:element name="properties">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="property" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:attribute name="name" type="xs:string" use="required" />
                        <xs:attribute name="type" type="xs:string" use="required" />
                        <xs:attribute name="notifyPropertyChanged" default="true" type="xs:boolean" use="optional" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="initParameters">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="initParameter" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:attribute name="name" type="xs:string" use="required" />
                        <xs:attribute name="type" type="xs:string" use="required" />
                        <xs:attribute name="parameterName" type="xs:string" use="optional" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:choice>
            <xs:attribute name="classNamespaceName" type="xs:string" use="required" />
            <xs:attribute name="classTypeName" type="xs:string" use="required" />
            <xs:attribute name="baseViewModelTypeName" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="version" use="required">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="1.0" />
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
</xs:schema>